package com.imooc.repository;

import com.imooc.domain.Student;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface StuRepository extends JpaRepository<Student, Integer> {
    //通过年龄来查询
    public List<Student> findByAge(Integer age);
}
